from django.db import models

startTask = False

# Create your models here.
class SimpleTask(models.Model):
    name = models.CharField(verbose_name="任务名称", max_length=20, null=False, primary_key=True)
    type = models.IntegerField(verbose_name="任务类型")
    argv = models.CharField(verbose_name="任务参数", max_length=250, null=False)
    lifecycle = models.IntegerField(verbose_name="生命周期")

    def save(self, *args, **kwargs):
        super().save(*args, **kwargs)
        return

class TmpTask(models.Model):
    tick = models.FloatField()

    def save(self, *args, **kwargs):
        super().save(*args, **kwargs)
        return

